<!-- 消费优惠策略 -->
<template>
  <div class="router-content">
    <inside v-for="(div, index) in article" :key="index" :title="div.title" :contents="div.contents" :urls="div.urls"></inside>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
import inside from '@/components/inside'
export default {
  name: 'index',
  components: {
    inside
  },
  data () {
    return {
      menus: [],
      article: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    // console.log(this.$route.matched)
    this.write()
  },
  methods: {
    write () {
      this.article = [
        {
          title: '添加消费优惠策略',
          contents: [
            '进入消费优惠策略页面，点击右上角上方的添加消费优惠策略，如下图所示',
            '进入消费优惠策略编辑页面，如下图所示，点击下拉箭头选择适用卡类型，优惠方式有折扣和直减两种方式，可用餐别可选择早餐，午餐、晚餐、夜宵，四个餐别，以及可用档口及档口内的某道菜，点击提交即可设置消费优惠策略成功。',
            ''
          ],
          urls: [
            '/static/imgs/setting/discount_1.png',
            '/static/imgs/setting/discount_2.png',
            '/static/imgs/setting/discount_3.png'
          ]
        }, {
          title: '修改消费优惠策略',
          contents: [
            '进入消费优惠策略页面，点击已添加消费优惠策略旁边“修改”的按钮，如下图所示',
            '进入到该消费优惠策略的编辑页面，如下图所示，可进行该消费优惠策略修改，点击提交即可修改成功。'
          ],
          urls: [
            '/static/imgs/setting/discount_4.png',
            '/static/imgs/setting/discount_5.png'
          ]
        }, {
          title: '删除消费优惠策略',
          contents: [
            '进入消费优惠策略页面，点击已消费优惠策略旁边的“删除”按钮，如下图所示，即可删除该消费优惠策略。'
          ],
          urls: [
            '/static/imgs/setting/discount_6.png'
          ]
        }
      ]
    }
  }
}
</script>
<style>
</style>
